package com.fortune.bootup;

import com.faneui.common.exception.BusinessException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("")
public class DemoController {

    @RequestMapping(value = "", method = RequestMethod.GET)
    public ModelAndView indexOfAll() throws BusinessException {
        ModelAndView mv = new ModelAndView("dashboard");
        mv.addObject("menuFlag", "dashboard");
        return mv;
    }


    @RequestMapping(value = "index", method = RequestMethod.GET)
    public ModelAndView index() throws BusinessException {
        ModelAndView mv = new ModelAndView("dashboard");
        mv.addObject("menuFlag", "dashboard");
        return mv;
    }
}
